<template>
  <fs-page>
    <fs-crud ref="crudRef" v-bind="crudBinding" />
  </fs-page>
</template>

<script lang="ts" setup>
import { useFs, useFsRef } from '@fast-crud/fast-crud'
import createCrudOptions from './crud'

const { crudRef, crudBinding, context, crudExpose } = useFsRef()
//同步初始化crud
useFs({ crudRef, crudBinding, crudExpose, context, createCrudOptions })

onMounted(() => {
  crudExpose.doRefresh()
})
</script>
